import request from '@/utils/request'


export function login(data) {
    return request({
        url: '/admin/login',
        method: 'post',
        data
    })
}
export function getUserInfo() {
    return request({
        url: '/admin/info',
        method: 'get',
    })
}
export function logout() {
    return request({
        url: '/admin/logout',
        method: 'get',
    })
}
